

#ifndef _WECHAT_PROFILE_H_
#define _WECHAT_PROFILE_H_

#include <stdint.h>
#include "ble.h"
#include "ble_srv_common.h"

#define WECHAT_SERVICE_UUID		0xFEE7
#define WECHAT_CHAR_MAC_UUID	0xFEC9 
#define WECHAT_CHAR_MEASURE_UUID 0xFEA1 
#define WECHAT_CHAR_TARGET_UUID 0xFEA2 

typedef struct ble_wechat_s
{
	uint16_t 					conn_handle;
	uint16_t 					service_handle;	
	
	ble_gatts_char_handles_t 	mac_handle;
	ble_gatts_char_handles_t 	measure_handle;

	bool 						is_notification_enabled;
	
}ble_wechat_t;


void ble_wechat_init(void);

void ble_wechat_evt(ble_evt_t * p_ble_evt);

uint32_t ble_wechat_update_measure_value(uint32_t value);

#endif 
